package cn.itsource.system.mapper;


import cn.itsource.system.domain.Role;
import cn.itsource.system.query.RoleQuery;

import java.util.List;

/**
* @author DELL
* @description 针对表【tb_role】的数据库操作Mapper
* @createDate 2024-06-13 16:41:13
* @Entity cn.itsource.article.domain.Role
*/
public interface RoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);


    List<Role> selectAllByQuery(RoleQuery roleQuery);


    void deleteByConllection(List<Role> roles);


    void saveRoleMenus(Role role);


    void saveRolePermissions(Role role);

    void deleteRoleMenuByRoleId(Long id);

    void deleteRolePermissionByRoleId(Long id);
}
